<ion-header>
    <ion-navbar color="orange">
        <ion-title>
            信息编辑
        </ion-title>
        <ion-buttons end (click)="publish()">
            <button ion-button icon-only>
                发送
            </button>
        </ion-buttons>
    </ion-navbar>
</ion-header>

<ion-content padding>
    <!-- 消息内容 -->
    <div class="ht-100 ht-overflow ht-border-radius ht-background ht-padding ht-margin-bottom">
        <div class="ht-100 ht-overflow">
            <img src="assets/imgs/mt-xx.png" alt="" class="ht-img">
            <div class="ht-90 ht-padding-bottom10 ht-overflow ht-float-left ht-border-bottom ht-font-15 ht-padding-l5">
                消息内容
            </div>
        </div>
        <textarea name="" id="" cols="30" rows="7" class="cd-textarea" placeholder="请填写你想说的文字" [(ngModel)]="postData['auto_content']"></textarea>
    </div>
    <!-- 语音 -->
    <!--<div class="ht-100 ht-overflow ht-border-radius ht-background ht-padding ht-margin-bottom">-->
        <!--<div class="ht-100 ht-overflow">-->
            <!--<img src="assets/imgs/mt-yy.png" alt="" class="cd-img">-->
            <!--<span class="cd-bq">点击录音</span>-->
            <!--<span class="cd-bq">点击停止</span>-->
            <!--<span class="cd-bq">上传</span>-->
        <!--</div>-->
    <!--</div>-->
    <!-- 图片上传 -->
    <div class="ht-100 ht-overflow ht-border-radius ht-background ht-padding ht-margin-bottom">
        <div class="ht-100 ht-overflow">
            <img src="assets/imgs/mt-tp.png" alt="" class="ht-img">
            <div class="ht-90 ht-padding-bottom10 ht-overflow ht-float-left ht-border-bottom ht-font-15 ht-padding-l5">
                图片上传（图片最多可传3张）
            </div>
        </div>
        <div class="mt-img-box">
            <div class="mt-ib-tp ht-relative margin-top-5" *ngFor="let img of postData['cover']">
                <img [src]="util.parseImageUrl(img)" alt="" style="width:100%;height:100%;">
                <span class="del" (click)="delImg(img)">X</span>
            </div>
            <div class="mt-ib-tp2 margin-top-5" *ngIf="postData['cover'].length < 3">
                <input type="file" class="file-input" (change)="uploadImage(item,$event)">
            </div>
        </div>
    </div>
</ion-content>
